package com.message;

import com.constant.MessageType;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author 罗俊华
 * @date 2021/8/27 - 4:39 下午
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor

public class LoginReqMessage extends DefaultMessage implements UserInfo {

    private String userName;

    private String password;

    @Override
    public int getMessageType() {
        return MessageType.LOGIN_REQUEST;
    }

    public LoginReqMessage(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }
}
